﻿Imports System.Drawing

''' <summary>
''' Stored constants, variable, string
''' </summary>
''' <remarks></remarks>
''' 
Public Class PublicConst

#Region "DateTime"

    Public Shared Format_Date_Short As String = "MM/dd/yyyy"
    Public Shared Format_Date_Long As String = "MM/dd/yyyy HH:mm:ss"
    Public Shared DateTimeServer As DateTime
    Public Shared DateTimeLocal As DateTime = DateTime.Now
#End Region

#Region "Admin user"
    Public Shared ReadOnly AdminUser As String = "admin"
    Public Shared ReadOnly AdminPassword As String = "admin"
    Public Shared ReadOnly AdminID As String = "00000"
    Public Shared ReadOnly AdminName As String = "IT Group"
#End Region

#Region "Connection string"
    Public Shared Dung As String = "Data Source = TRANTRIDUNG\SQLEXPRESS;Initial Catalog=QLKBNT;Integrated Security=True;"
    Public Shared Quoc As String = "Data Source=.\sql2005;Initial Catalog=QLKBNT; Integrated Security=True;"
    Public Shared Thuy As String = "Data Source=.;Initial Catalog=QLKBNT;Integrated Security=True;"
    'Public Shared SQL_DB_ERP_Pub As String = "Data Source=10.153.1.7;initial catalog=SUNITERP;user id=ERPUSER;password=NDVERPUser001;Connection Timeout=0;"
    'Public Shared SQL_DB_Factory As String = "Data Source=169.103.1.103;initial catalog=Northwind;user id=Acc_Prd;password=winntdapsun;Connection Timeout=0;"
    'Public Shared DB2_DB_AS400 As String = "Driver={Client Access ODBC Driver (32-bit)};System=128.3.10.7;Uid=NDVNHU;Pwd=uyen6114"

    Public Shared SQL_None As String = ""
    Public Shared DB2_None As String = ""
    Public Shared Oracle_None As String = ""
    Public Shared MySql_None As String = ""
#End Region

#Region "Enums"

    Enum EnumServers
        TRANTRIDUNG = 1
        HongChi = 2
        User_pc = 3
        QL046 = 4
        'NDV_SQL_Factory = 5
        'NDV_DB2_AS400 = 6
        NDV_SQL_None = 7
        NDV_DB2_None = 8
        NDV_Oracle_None = 9
        NDV_MySql_None = 10
    End Enum

#End Region

#Region "Const"
    Public Shared ReadOnly Key As String = "_K"
#End Region

#Region "Colors"
    Public Shared Color1 As Color = Color.White
    Public Shared Color2 As Color = Color.YellowGreen
    Public Shared Color_Key As Color = Color.Yellow
    Public Shared Color_Entry_Text As Color = Color.FromArgb(255, 255, 192)
    Public Shared Color_Leave_Text As Color = Color.White
    Public Shared Color_Boder As Color = Color.FromArgb(0, 192, 0)
#End Region

#Region "Message"
    Public Shared Message_Question_Save As String = "Do you want to save this records ?"
    Public Shared Message_Question_Delete As String = "Do you want to delete this record ?"
    Public Shared Message_Question_Import As String = "Do you want to import these records ?"
    Public Shared Message_Question_Sync As String = "Do you want to Sync data ?"
    Public Shared Message_Caption_Confirm As String = "Confirm"
    Public Shared Message_Caption_Save As String = "Save"
    Public Shared Message_Caption_Update As String = "Update"
    Public Shared Message_Caption_Delete As String = "Delete"
    Public Shared Message_Caption_Error As String = "Error"
    Public Shared Message_Caption_Help As String = "Help"
    Public Shared Message_Caption_Sync As String = "Synchronize"
    Public Shared Message_Caption_Import As String = "Import"
    Public Shared Message_caption_Export As String = "Export"
    Public Shared Message_Caption_Condition As String = "Condition"
    Public Shared Message_Successfully As String = "Successfully."
#End Region

#Region "Default condition"
    Public Shared ConditionDefault As String = " 1=1 "
#End Region
End Class
